package com.shop.domin;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

//#角色权限表
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("rolespermission")
public class Rolespermission implements Serializable {
    @TableId(value = "rolePermissionId",type = IdType.AUTO)
    private Integer rolePermissionId;
    @TableField(value = "roleId")
    private Integer roleId;//角色id'
    @TableField(value = "permissionId")
    private String permissionId;//权限id
}
